package com.ruoyi.service.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目分类对象 service_category
 * 
 * @author ZDL
 * @date 2024-10-21
 */
public class ServiceCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目分类id */
    @Excel(name = "项目分类ID")
    private Long categoryId;

    /** 项目分类名称 */
    @Excel(name = "项目分类名称")
    private String categoryName;

    /** 启用标志（0代表启用 2代表不启用） */
    @Excel(name = "启用标志", readConverterExp = "0=启用,2=不启用")
    private String categoryUseFlag;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=存在,2=已删除")
    private String categoryDelFlag;

    /** 关联上级分类 */
    @Excel(name = "关联上级分类")
    private Long categoryLink;

    /** 关联首级分类 */
    @Excel(name = "关联首级分类")
    private Long categoryHeadlink;

    /** 分类层级 */
    @Excel(name = "分类层级")
    private Integer categoryLevel;

    //private List<ServiceCategory> children;

    //private List<ServiceItems> items;

    //public List<ServiceCategory> getChildren() {
    //    return children;
    //}
    //
    //public void setChildren(List<ServiceCategory> children) {
    //    this.children = children;
    //}
    //
    //public List<ServiceItems> getItems() {
    //    return items;
    //}
    //
    //public void setItems(List<ServiceItems> items) {
    //    this.items = items;
    //}

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setCategoryUseFlag(String categoryUseFlag) 
    {
        this.categoryUseFlag = categoryUseFlag;
    }

    public String getCategoryUseFlag() 
    {
        return categoryUseFlag;
    }
    public void setCategoryDelFlag(String categoryDelFlag) 
    {
        this.categoryDelFlag = categoryDelFlag;
    }

    public String getCategoryDelFlag() 
    {
        return categoryDelFlag;
    }
    public void setCategoryLink(Long categoryLink) 
    {
        this.categoryLink = categoryLink;
    }

    public Long getCategoryLink() 
    {
        return categoryLink;
    }
    public void setCategoryHeadlink(Long categoryHeadlink) 
    {
        this.categoryHeadlink = categoryHeadlink;
    }

    public Long getCategoryHeadlink() 
    {
        return categoryHeadlink;
    }
    public void setCategoryLevel(Integer categoryLevel) 
    {
        this.categoryLevel = categoryLevel;
    }

    public Integer getCategoryLevel() 
    {
        return categoryLevel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("categoryUseFlag", getCategoryUseFlag())
            .append("categoryDelFlag", getCategoryDelFlag())
            .append("categoryLink", getCategoryLink())
            .append("categoryHeadlink", getCategoryHeadlink())
            .append("categoryLevel", getCategoryLevel())
            .toString();
    }
}
